package com.renderbus.ep;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;

public class NodeClient extends Thread{
	
	private String ip;
	private int port;
	
	
	public NodeClient(String ip,int port) {
		this.ip = ip;
		this.port = port;
	}

	public void run(){
		Socket s = null;
		try {
			s = new Socket(ip, port);
			new NodeClientHandler(s).start();
			
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
